﻿using System;

namespace Microsoft.SPOT.Hardware
{
    public class OutputPort : Port
    {
        public OutputPort(Cpu.Pin portId, bool initialState) : base(portId, initialState)
        {
            InitialState = initialState;
        }
        
//        protected OutputPort(Cpu.Pin portId, bool initialState, bool glitchFilter, Port.ResistorMode resistor);

        public bool InitialState { get; private set; }

        public void Write(bool state)
        {
            StateInternal = state;
        }
    }
}
